package com.lvyq.myplayer.service

import com.lvyq.myplayer.parcelable.SongInfoData
import java.util.ArrayList

/**
 * 文件描述：IService
 * 作者：lvyq
 * 创建时间：2025-03-06
 * 修改时间：2025-03-06
 */
interface IService {

    //更新播放状态，是否强制播放并返回状态
      fun updPlayState(isPlayStart:Boolean):Boolean?
    fun getTotalDuration(): Int?
     fun getProgress(): Int?
    fun seekTo(progress: Int)
    fun palyNextAudio()
    fun setPlayMode()
    fun getPlayMode():Int
    fun preMusicPlay()
    fun nextMusicPlay()
    fun musicPlayPosition(position: Int,data: SongInfoData?)
    fun getPlayList(): ArrayList<SongInfoData>?

    fun getPosition(): Int?

    fun getPlayState():Boolean

    fun stop()

    fun initAudioPlayLst(playList: ArrayList<SongInfoData>)
    fun updateCurrentPosition(position: Int)

    /**
     * 专为删除播放中的单曲创建的方法
     */
    fun playForDelCurrent(audioInfo: SongInfoData,position: Int)
    fun clearService(audioInfo: SongInfoData)


}